# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=ospd
pkgver=21.4.4
pkgrel=3
pkgdesc="Collection of scanner wrappers for OpenVAS"
url="https://www.openvas.org/"
arch="noarch"
license="GPL-2.0-or-later"
depends="python3 py3-paramiko py3-defusedxml
py3-deprecated py3-psutil py3-lxml"
makedepends="py3-setuptools py3-wheel cython
libxml2-dev libxslt-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/greenbone/ospd/archive/v$pkgver.tar.gz"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
700cae3a248e8998a00116c7f49a2dccd7cc23d8317eed9200472c5574962b2b4767c3d689ccca93e919b10e1ecb8160bdb1e2d155fdd2e76d12a23d07748ca4  ospd-21.4.4.tar.gz
"
